from Question import Questions

question_prompts = ["What color are apples?\n(a) Red/Green\n(b) Purple\n(c) Orange\n\n",
                    "What color are Bananas?\n(a) Teal\n(b) Magenta\n(c) Yellow\n\n",
                    "What color are strawberries?\n(a) Yellow\n(b) Red\n(c) Blue\n\n"
]

questions1 = [
    Questions(question_prompts[0], 'a'),
    Questions(question_prompts[1], 'c'),
    Questions(question_prompts[2], 'b')
]


def run_test(question):
    score = 0;
    for question in questions1:
        answer = input(question.prompt)
        if answer == question.answer:
            score += 1

    print("You got ", str(score) + '/' + str(len(questions1)) , "corrtct")

run_test(questions1)